﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.AccessModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ONSITETRAINING
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--<script type ="text/javascript">
        $(function () {

            var TraningIPoint = $('#TraningIPoint').val();
            var TraningIIPoint = $('#TraningIIPoint').val();
            var TraningIIIPoint = $('#TraningIIIPoint').val();
            var TraningIVPoint = $('#TraningIVPoint').val();
            var TraningVPoint = $('#TraningVPoint').val();
            var TraningVIPoint = $('#TraningVIPoint').val();
            var TraningVIIPoint = $('#TraningVIIPoint').val();
            var TraningVIIIPoint = $('#TraningVIIIPoint').val();

            TotalPoint();

            $('#TreningICheck').change(function () {

                var isChecked = $('#TreningICheck:checked').val() ? true : false;
                if (isChecked) {
                    TraningIPoint += 1;
                } else {
                    TraningIPoint -= 1;
                }
                $('#TraningIPoint').val(TraningIPoint);
                TotalPoint();

            });

            $('#TreningIICheck').change(function () {

                var isChecked = $('#TreningIICheck:checked').val() ? true : false;
                if (isChecked) {
                    TraningIIPoint += 1;
                    
                } else {
                    TraningIIPoint -= 1;
                }
                $('#TraningIIPoint').val(TraningIIPoint);
                TotalPoint();

            });

            $('#TreningIIICheck').change(function () {

                var isChecked = $('#TreningIIICheck:checked').val() ? true : false;
                if (isChecked) {
                    TraningIIIPoint += 1;
                } else {
                    TraningIIIPoint -= 1;
                }
                $('#TraningIIIPoint').val(TraningIIIPoint);
                TotalPoint();

            });

            $('#TreningIVCheck').change(function () {

                var isChecked = $('#TreningIVCheck:checked').val() ? true : false;
                if (isChecked) {
                    TraningIVPoint += 1;
                } else {
                    TraningIVPoint -= 1;
                }
                $('#TraningIVPoint').val(TraningIVPoint);
                TotalPoint();

            });

            $('#TreningVCheck').change(function () {

                var isChecked = $('#TreningVCheck:checked').val() ? true : false;
                if (isChecked) {
                    TraningVPoint += 1;
                } else {
                    TraningVPoint -= 1;
                }
                $('#TraningVPoint').val(TraningVPoint);
                TotalPoint();

            });

            $('#TreningVICheck').change(function () {

                var isChecked = $('#TreningVICheck:checked').val() ? true : false;
                if (isChecked) {
                    TraningVIPoint += 1;
                } else {
                    TraningVIPoint -= 1;
                }
                $('#TraningVIPoint').val(TraningVIPoint);
                TotalPoint();

            });

            $('#TreningVIICheck').change(function () {

                var isChecked = $('#TreningVIICheck:checked').val() ? true : false;
                if (isChecked) {
                    TraningVIIPoint += 1;
                } else {
                    TraningVIIPoint -= 1;
                }
                $('#TraningVIIPoint').val(TraningVIIPoint);
                TotalPoint();

            });

            $('#TreningVIIICheck').change(function () {

                var isChecked = $('#TreningVIIICheck:checked').val() ? true : false;
                if (isChecked) {
                    TraningVIIIPoint += 1;
                } else {
                    TraningVIIIPoint -= 1;
                }
                $('#TraningVIIIPoint').val(TraningVIIIPoint);
                TotalPoint();

            });


            function TotalPoint() {
                $("#TotalPoint").val(parseInt(TraningIPoint) + parseInt(TraningIIPoint) +
                 parseInt(TraningIIIPoint) + parseInt(TraningIVPoint) +
                  parseInt(TraningVPoint) + parseInt(TraningVIPoint) +
                  parseInt(TraningVIIPoint) + parseInt(TraningVIIIPoint));
            }

        });
    </script>--%>
    <h2>
        ON SITE TRAINING การฝึกอบรม
    </h2>
    <% using (Html.BeginForm())
       {%>
    <%= Html.ValidationSummary(true) %>
    <div class="CSSTableGenerator">
        <table>
            <tr>
                <th>
                    <label>
                        การฝึกอบรม ONSITE TRAINING</label>
                </th>
                <th>
                    <label>
                        Yes ทำ</label>
                </th>
            </tr>
            <tr>
                <td>
                    <label>
                        MACHINE WARE WASHING เครื่องล้างจานอัติโนมัติ</label>
                </td>
                <td align="center">
                    <%= Html.CheckBoxFor(model => model.TreningICheck)%>
                </td>
                <%-- <td>
                   <%=@Html.DropDownListFor(model => model.TrainingRemarksI, Model.TrainingRemarkISelect)%>
                </td>--%>
<%--                <td align="center">
                    <%=@Html.TextBoxFor(model => model.TraningIPoint, new { @Value = "1", @readonly = "true" })%>
                    
                </td>--%>
            </tr>
            <tr>
                <td>
                    <label>
                        FLOOR CLEANING การทำความสะอาดพื้น</label>
                </td>
                <td align="center">
                    <%= Html.CheckBoxFor(model => model.TreningIICheck)%>
                </td>
                <%--<td>
                     <%=@Html.DropDownListFor(model => model.TrainingRemarksII, Model.TrainingRemarkIISelect)%>
                </td>--%>
 <%--                <td align="center">
                    <%=@Html.TextBoxFor(model => model.TraningIIPoint, new { @Value = "1", @readonly = "true" })%>
                    
                </td>--%>
            </tr>
            <tr>
                <td>
                    <label>
                        WINDOW CLEANING การทำความสะอาดหน้าต่าง กระจก</label>
                </td>
                <td align="center">
                    <%= Html.CheckBoxFor(model => model.TreningIIICheck)%>
                </td>
                <%-- <td>
                    <%=@Html.DropDownListFor(model => model.TrainingRemarksIII, Model.TrainingRemarkIIISelect)%>
                </td>--%>
<%--               <td align="center">
                    <%=@Html.TextBoxFor(model => model.TraningIIIPoint, new { @Value = "1", @readonly = "true" })%>
                    
                </td>--%>
            </tr>
            <tr>
                <td>
                    <label>
                        HAND WASHING การล้างมือ</label>
                </td>
                <td align="center">
                    <%= Html.CheckBoxFor(model => model.TreningIVCheck)%>
                </td>
                <%--<td>
                    <%=@Html.DropDownListFor(model => model.TrainingRemarksIV, Model.TrainingRemarkIVSelect)%>
                </td>--%>
<%--                  <td align="center">
                    <%=@Html.TextBoxFor(model => model.TraningIVPoint, new { @Value = "1", @readonly = "true" })%>
                    
                </td>--%>
            </tr>
            <tr>
                <td>
                    <label>
                        3 SINK COMPARTMENT การล้างจานแบบ 3 ซิงค์</label>
                </td>
                <td align="center">
                    <%= Html.CheckBoxFor(model => model.TreningVCheck)%>
                </td>
                <%-- <td>
                     <%=@Html.DropDownListFor(model => model.TrainingRemarksV, Model.TrainingRemarkVSelect)%>
                </td>--%>
<%--                 <td align="center">
                    <%=@Html.TextBoxFor(model => model.TraningVPoint, new { @Value = "1", @readonly = "true" })%>
                    
                </td>--%>
            </tr>
            <tr>
                <td>
                    <label>
                        BASIC EQUIPMENT CLEANING การใช้อุปกรณ์ทำความสะอาดเบื้องต้น</label>
                </td>
                <td align="center">
                    <%= Html.CheckBoxFor(model => model.TreningVICheck)%>
                </td>
                <%-- <td>
                     <%=@Html.DropDownListFor(model => model.TrainingRemarksVI, Model.TrainingRemarkVISelect)%>
                </td>--%>
   <%--             <td align="center">
                    <%=@Html.TextBoxFor(model => model.TraningVIPoint, new { @Value = "1", @readonly = "true" })%>
                    
                </td>--%>
            </tr>
            <tr>
                <td>
                    <label>
                        DISPENSING EQUIPMENT การใช้เครื่องจ่ายน้ำยา</label>
                </td>
                <td align="center">
                    <%= Html.CheckBoxFor(model => model.TreningVIICheck)%>
                </td>
                <%-- <td>
                    <%=@Html.DropDownListFor(model => model.TrainingRemarksVII, Model.TrainingRemarkVIISelect)%>
                </td>--%>
  <%--             <td align="center">
                    <%=@Html.TextBoxFor(model => model.TraningVIIPoint, new { @Value = "1", @readonly = "true" })%>
                    
                </td>--%>
            </tr>
            <tr>
                <td>
                    <label>
                        FOOD SAFETY ความปลอดภัยด้านอาหาร</label>
                </td>
                <td align="center">
                    <%= Html.CheckBoxFor(model => model.TreningVIIICheck)%>
                </td>
                <%-- <td>
                    <%=@Html.DropDownListFor(model => model.TrainingRemarksVIII, Model.TrainingRemarkVIIISelect)%>
                </td>--%>
<%--                <td align="center">
                    <%=@Html.TextBoxFor(model => model.TraningVIIIPoint, new { @Value = "1", @readonly = "true" })%>
                    
                </td>--%>
            </tr>
<%--            <tr>
                <td colspan="2">
                    Total Points คะแนนรวม
                </td>
                <td>
                    <input type="text" id="TotalPoint" readonly="readonly" value="0" />
                </td>
            </tr>--%>
        </table>
    </div>
    <p>
        <input type="submit" class="buttonSummit" value="Next" />
    </p>
    <% } %>
    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
